# import datetime
# kai_str = '2021-08-31 12:30:00'
# jie_str = '2021-08-31 14:30:00'
# kai_time = datetime.datetime.strptime(kai_str, '%Y-%m-%d %H:%M:%S')
# jie_time = datetime.datetime.strptime(jie_str, '%Y-%m-%d %H:%M:%S')
# print("开始时间>>>",kai_time)
# print("结束时间>>>",jie_time)
# if kai_time>jie_time:
#     print("开始时间不能大于结束时间")
# kai_time=kai_time.strftime('%Y-%m-%d %H:00:00')
# print(kai_time)
detail=[{"sdc": 122,"sxc": 854,"sall": 976}]
print(detail[0]["sdc"])

